{include file="public/header" /}
<body>
<header class="mui-bar mui-bar-nav mui-box-header ">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title mui-title-box">修改密码</h1>
    <a class="mui-action-back mui-icon mui-icon-compose mui-pull-right"></a>
</header>
<div class="mui-content" id="container">
    <div class="popup_conten">
       <div class="popup_pass">
            <form action="">
                <div class="popup_span">
                    <label class="popup_label">旧密码</label>
                    <input type="password" class="mui-input-clear  popup_input" placeholder="请输入旧密码" name="oldPassword" />
                </div>
                <div class="popup_span">
                    <label class="popup_label">新密码</label>
                    <input type="password" class="mui-input-clear popup_input" placeholder="请输入新密码"  name="newPassword"/>
                </div>
                <div class="popup_span">
                    <label class="popup_label">确认新密码</label>
                    <input type="password" class="mui-input-clear popup_input" placeholder="请确认新密码"  name="rePassword"/>
                </div>
                <input value="提交"  type="button" class="sub " id="submit">

            </form>

       </div>
    </div>
</div>

{include file="public/footer" /}
<script>
    $('#submit').on('click',function(){
        var params  = {
            url : "{:url('password')}",
            data: $('form').serialize(),
            type: 'post',
            sCallback:function(res){
                window.location.href = "{:url('index')}";
            }
        }
        common.request(params);
    });

</script>
</body>
</html>
